libxc: Rework extra module initialisation
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 19 Feb 2016 17:35:43 +0000 (17:35 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 18 Aug 2016 16:24:39 +0000 (17:24 +0100)
commit0c42901e12979329beb8761454107b3eb27c0d84
tree728720a969f0a6cc34b77491cac1e69a44219e5a
parentf7052bb4dca15df17523e195969a5be2e7055480
libxc: Rework extra module initialisation

This patch use xc_dom_alloc_segment() to allocate the memory space for the
ACPI modules and the SMBIOS modules. This is to replace the arbitrary
placement of 1MB (+ extra for MB alignement) after the hvmloader image.

This patch can help if one add extra ACPI table and hvmloader contain
OVMF (OVMF is a 2MB binary), as in that case the extra ACPI table could
easily be loaded past the address 4MB, but hvmloader use a range of
memory from 4MB to 10MB to perform tests and in the process, clears the
memory, before loading the modules.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_dom_hvmloader.c